package com.charlotte.study.gupao.bridge.message;

/**
 * @author junjie.ding
 * @date 2020/3/11
 */
public class Test {

    public static void main(String[] args) {

        IMessage message = new SmsMessage();
        AbstractMessage abstractMessage = new NomalMessage(message);
        abstractMessage.sendMessage("调休申请", "经理");

        abstractMessage = new UrgentMessage(message);

        abstractMessage.sendMessage("外出申请", "总监");
    }
}
